import './styles/common.scss'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import { getTest } from './apis/testAPI'
// 全局指令注册
import { lazyPlugin } from '@/directives/index'
// pina持久化
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

getTest().then(res=>{
    console.log(res)
})
const app = createApp(App)
const pina=createPinia()
pina.use(piniaPluginPersistedstate)
app.use(lazyPlugin)
app.use(createPinia())
app.use(router)
app.use(pina)


app.mount('#app')
